package com.bbf.db.single.service;

import com.bbf.db.single.dao.QdComputerDao;
import com.bbf.db.single.entity.QdComputerEntity;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class QdComputerServiceImpl implements QdComputerService {

  @Resource
  private QdComputerDao qdComputerDao;

  @Override
  public QdComputerEntity findById(String id) {
    return qdComputerDao.selectByPrimaryKey(id);
  }

  @Override
  public int deleteById(String id) {
    return qdComputerDao.deleteByPrimaryKey(id);
  }

  @Override
  public int insertOne(QdComputerEntity model) {
    return qdComputerDao.insertSelective(model);
  }

  @Override
  public int updateOne(QdComputerEntity model) {
    return qdComputerDao.updateByPrimaryKeySelective(model);
  }
}
